package jee.boot.module.bpm.table.mysql.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import jee.boot.common.annotation.Column;
import jee.boot.common.basic.DataEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 窗体对应的表
 */
public class FormTable extends DataEntity<FormTable> {
    @Column(name = "table_name")
    private String name;//表名
    @Column(name = "table_comment")
    private String comment;//注释
    private List<FormField> allColumnList = new ArrayList<>();//所有的字段
    private List<FormField> addColumnList = new ArrayList<>();//添加的字段
    private List<FormField> modifyColumnList = new ArrayList<>();//修改的字段
    private List<FormField> dropColumnList = new ArrayList<>();//删除的字段

    public FormTable() {
    }

    public FormTable(String name) {
        this.name=name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    @JsonIgnore
    public List<FormField> getAddColumnList() {
        return addColumnList;
    }

    public void setAddColumnList(List<FormField> addColumnList) {
        this.addColumnList = addColumnList;
    }

    @JsonIgnore
    public List<FormField> getModifyColumnList() {
        return modifyColumnList;
    }

    public void setModifyColumnList(List<FormField> modifyColumnList) {
        this.modifyColumnList = modifyColumnList;
    }

    @JsonIgnore
    public List<FormField> getDropColumnList() {
        return dropColumnList;
    }

    public void setDropColumnList(List<FormField> dropColumnList) {
        this.dropColumnList = dropColumnList;
    }

    @JsonIgnore
    public List<FormField> getAllColumnList() {
        return allColumnList;
    }

    public void setAllColumnList(List<FormField> allColumnList) {
        this.allColumnList = allColumnList;
    }


}
